﻿<sap:ActivityDesigner x:Class="Vision.Core.ActivityComponents.Conversion.ToByteArrayDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0" Margin="0,0,0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            
            <TextBlock Grid.Column="0" Text="Activity variable: " Foreground="Gray" />
            <TextBox Grid.Column="1" Text="{Binding Path=ModelItem.Body.Argument.Name, Mode=TwoWay}" Margin="7,0,0,0" Foreground="Gray" />
        </Grid>
        
        <sap:WorkflowItemPresenter Grid.Row="1"
            AutomationProperties.AutomationId="Activity"
            Item="{Binding Path=ModelItem.Body.Handler, Mode=TwoWay}"
            HintText="Drop an activity here"
            AllowedItemType="{x:Type sa:Activity}"/>
    </Grid>
</sap:ActivityDesigner>
